﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KQ.DCMMP.Common
{
    public static class DefaultCompareStrategies
    {
        public const string Equal = "EQUAL";
        public const string Prune = "PRUNE";
        public const string LD = "LD";
        public const string Regex = "REGEX";
        public const string Lucene = "LUCENE";

        public static bool IsEqual(string extensionType)
        {
            return string.Equals(extensionType, Equal, StringComparison.OrdinalIgnoreCase);
        }

        public static bool IsPrune(string extensionType)
        {
            return string.Equals(extensionType, Prune, StringComparison.OrdinalIgnoreCase);
        }

        public static bool IsLD(string extensionType)
        {
            return string.Equals(extensionType, LD, StringComparison.OrdinalIgnoreCase);
        }

        public static bool IsRegex(string extensionType)
        {
            return string.Equals(extensionType, Regex, StringComparison.OrdinalIgnoreCase);
        }

        public static bool IsLucene(string extensionType)
        {
            return string.Equals(extensionType, Lucene, StringComparison.OrdinalIgnoreCase);
        }
    }
}
